package com.ruoyi.export.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * 导出接口
 * @author darlin
 * @date 2022-03-17
 */
public interface IExportService {

    public void downloadTemplate(String fileName, String templateName,
                                 HttpServletRequest request, HttpServletResponse response);

    public void baseXlsxExport(String fileName,
                               Map<String, Object> data,
                               String templateName,
                               HttpServletRequest request,
                               HttpServletResponse response);

    public void baseDocxExport(String name, Map<String, Object> data, String templateName,
                               HttpServletRequest request, HttpServletResponse response) throws Exception;

    void convertDocx(String name, Map<String, Object> data, String templateName);
    String convertDocxAndUpload(String name, Map<String, Object> data, String templateName);

    public String convertXlsx2File(String name, Map<String,Object> data, String templateName);
}
